package com.colorful.insuranceproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by handsome-Bob on 2017/8/8.
 * <p>
 * 用于传递支付值得Bean
 */
public class PaymentBean implements Parcelable {

    //地址ID  购物车ID  应该支付  实际支付  可乐否余额  优惠券ID  支付类型  卖家留言  店铺ID 邮费 ** 优惠券创造的金额  购物车数量

    private String goodsMoney;

    private String deliverMoney;

    private String useScore;

    private String orderNo;

    private int isBatch;

    private String userId;

    private String needPay;

    private float  kekanganEDu;


    public PaymentBean() {
    }

    public PaymentBean(String goodsMoney, String deliverMoney, String useScore, String orderNo, int isBatch, String userId, String needPay, float kekanganEDu) {
        this.goodsMoney = goodsMoney;
        this.deliverMoney = deliverMoney;
        this.useScore = useScore;
        this.orderNo = orderNo;
        this.isBatch = isBatch;
        this.userId = userId;
        this.needPay = needPay;
        this.kekanganEDu = kekanganEDu;
    }

    public String getGoodsMoney() {
        return goodsMoney;
    }

    public void setGoodsMoney(String goodsMoney) {
        this.goodsMoney = goodsMoney;
    }

    public String getDeliverMoney() {
        return deliverMoney;
    }

    public void setDeliverMoney(String deliverMoney) {
        this.deliverMoney = deliverMoney;
    }

    public String getUseScore() {
        return useScore;
    }

    public void setUseScore(String useScore) {
        this.useScore = useScore;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public int getIsBatch() {
        return isBatch;
    }

    public void setIsBatch(int isBatch) {
        this.isBatch = isBatch;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getNeedPay() {
        return needPay;
    }

    public void setNeedPay(String needPay) {
        this.needPay = needPay;
    }

    public float getKekanganEDu() {
        return kekanganEDu;
    }

    public void setKekanganEDu(float kekanganEDu) {
        this.kekanganEDu = kekanganEDu;
    }

    @Override
    public String toString() {
        return "PaymentBean{" +
                "goodsMoney='" + goodsMoney + '\'' +
                ", deliverMoney='" + deliverMoney + '\'' +
                ", useScore='" + useScore + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", isBatch=" + isBatch +
                ", userId='" + userId + '\'' +
                ", needPay='" + needPay + '\'' +
                ", kekanganEDu=" + kekanganEDu +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.goodsMoney);
        dest.writeString(this.deliverMoney);
        dest.writeString(this.useScore);
        dest.writeString(this.orderNo);
        dest.writeInt(this.isBatch);
        dest.writeString(this.userId);
        dest.writeString(this.needPay);
        dest.writeFloat(this.kekanganEDu);
    }

    protected PaymentBean(Parcel in) {
        this.goodsMoney = in.readString();
        this.deliverMoney = in.readString();
        this.useScore = in.readString();
        this.orderNo = in.readString();
        this.isBatch = in.readInt();
        this.userId = in.readString();
        this.needPay = in.readString();
        this.kekanganEDu = in.readFloat();
    }

    public static final Creator<PaymentBean> CREATOR = new Creator<PaymentBean>() {
        @Override
        public PaymentBean createFromParcel(Parcel source) {
            return new PaymentBean(source);
        }

        @Override
        public PaymentBean[] newArray(int size) {
            return new PaymentBean[size];
        }
    };
}
